<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.addEventListener("hashchange",()=>{
            let url=location.hash.replace("#","");
            let insertPoint=document.getElementById("insertPoint");
            switch(url){
                case"emp":
                    insertPoint.innerHTML="";
                    break;
                case "manager":
                 insertPoint.innerHTML="管理员界面" 
                }
        },false);
    window.addEventListener("load",init,false);
    </script>
</head>
<body>
<ul style="list-style:none">
    <li style="float: left;width: 200px;text-align:center"><a href="#emp">员工</a></li>
    <li style="float: left;width: 200px;text-align:center"><a href="#manager">管理员</a></li>
</ul>
<br>
<hr>
<div id="insertPoint"></div>
</body>
</html>